<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome to Event Booking System</title>
    </head>
    <body>
        <h1>Event Booking System - Main Menu</h1>
        <%
            if (request.getSession().getAttribute("systemUserId") == null) {
        %>
        <b>You have not login.</b>
        <%} else {
        %>
        <c:url var="linkHref" value="/Controller?action=doLogout" />
        You have login with System User Id: <%=request.getSession().getAttribute("systemUserId").toString()%>. <a href="${linkHref}">Logout</a>
        <%
            }
        %>
        <ul>
            <c:url var="linkHref" value="/Controller?action=modifyServicePlan" />
            <li><a href="${linkHref}">Modify Service Plan</a></li>
            <c:url var="linkHref" value="/Controller?action=viewAllServicePlan" />
            <li><a href="${linkHref}">View All Service Plans</a></li>
            <c:url var="linkHref" value="/Controller?action=addServicePlan" />
            <li><a href="${linkHref}">Add Service Plan</a></li>
        </ul>
    </body>
</html>